package com.adong.pojo;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * @author adong
 */

public class Dream {
    public Dream() {
        System.out.println("Dream无参构造器");
    }

    @PostConstruct
    public void init() {
        System.out.println("Dream使用注解 @PostConstruct 的初始化方法");
    }

    @PreDestroy
    public void destroy() {
        System.out.println("Dream使用注解 @PreDestroy@PreDestroy 的销毁方法");
    }
}
